www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawEntity::GetAllAppName 方法

得到所有扩展数据名称

IDL
[helpstring("method GetAllAppName")]
HRESULT GetAllAppName([out, retval] IMxDrawResbuf** ppRet);
参数 
说明 
[out, retval] IMxDrawResbuf** ppRet 
返回IMxDrawResbuf扩展数据名称数组 

例如: VC 2005 调用

            MxDrawXLib::IMxDrawUtilityPtr mxUtility;
            mxUtility.CreateInstance(__uuidof( MxDrawXLib::MxDrawUtility ));
            if(mxUtility == NULL)
            {
                return;
            }

            CComPtr<IMxDrawPoint> spPickPoint;
            IMxDrawEntityPtr spEntity = mxUtility->GetEntity(&spPickPoint,_T("请选择实体"));

            if(spEntity == NULL)
                return;

            IMxDrawResbufPtr spRet = spEntity->GetAllAppName();
            if(spRet == NULL)
                return;

            for(long i = 0; i < spRet->Count;i++)
            {
                AfxMessageBox(spRet->AtString(i) );
            }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!